@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a {
  color: #38f;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.app-container-10 {
  padding: 10px;
}

p {
  padding: 0;
  margin: 0;
}

.app-container-30 {
  padding: 30px;
}

.app-container-20 {
  padding: 20px;
}

.app-container-15 {
  padding: 15px;
}

/** 统一处理所有的element-ui 的圆角问题*/
.app-ele-border-radius-0 {
  .el-button, .el-tag, .el-input__inner, .el-textarea__inner {
    border-radius: 0;
  }
}

.app-ele-border-radius-2 {
  .el-button, .el-tag, .el-input__inner {
    border-radius: 2px;
  }
}

.container-fff {
  background: #fff;
}

.e-vue-childen {
  font-size: 14px;
  color: #323233;

  .el-form-item__label {
    font-weight: normal;
    font-size: 14px;
    color: #323233;
  }

  .e-vue-children-desc {
    font-size: 12px;
    color: rgba(34, 34, 34, 0.8);
  }

  .e-vue-childen {
  }
}

.create-save-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  transition: all .5s;
  text-align: center;
  font-size: 12px;
  width: 100%;
  padding: 0 10px;
  box-shadow: 0 -3px 5px #eee;
  z-index: 9;

  .create-save-btn-box {
    background: hsla(0, 0%, 100%, .95);
    padding: 10px;
  }
}

.container-f0f2f5 {
  background-color: #f0f2f5;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.e-vue-table {
  .cell {
    font-size: 12px;
  }

  .has-gutter {
    th.is-leaf, td {
      border-bottom: 1px solid #e5e5e5;
      background: #f2f2f2;
      padding: 10px 0;
      font-weight: normal;
      color: #24292e;
    }
  }

  .el-pagination {
    span {
      font-size: 12px;
    }
  }
}

.app-content-max-height {
  max-height: calc(100vh - 50px);
}

.hasTagsView {
  .app-content-max-height {
    min-height: calc(100vh - 84px);
  }
}

.dialog-common {
  .el-dialog__header {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;

    .el-dialog__title {
      padding: 8px 15px;
      text-align: center;
      min-width: 90px;
      font-size: 12px;
    }

    .el-dialog__headerbtn {
      top: 10px;
    }
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
}

.up-dialog {
  font-size: 12px;

  .el-dialog__body {
    padding-top: 10px;
  }

  .el-dialog__header {
    padding: 10px;
    border-bottom: 1px solid #e5e5e5;

    .el-dialog__title {
      padding: 8px 15px;
      text-align: center;
      min-width: 90px;
      font-size: 12px;
    }

    .el-dialog__headerbtn {
      top: 10px;
    }
  }

  .dialog-content {
    overflow-y: auto;
    max-height: 80vh;

    .el-radio__label, .el-input, .el-textarea__inner, .el-textarea__inner {
      font-size: 12px;
    }

    .el-button, .el-tag, .el-input__inner {
      border-radius: 0;
    }
  }
}

.el-button {
  border-radius: 0;
}

/** 商品名称*/
.goods-name {
  display: flex;

  img {
    width: 60px;
    height: 60px;
    object-position: center;
    object-fit: cover;
  }

  .goods-name-item {
    flex: 1;
    padding-top: 5px;
    padding-left: 10px;

    p {
      color: #38f;
      cursor: pointer;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      position: relative;
      word-break: break-all;

      .title-edit {
        position: absolute;
        right: 2px;
        bottom: 0;
        width: 30px;
        height: 18px;
        text-align: right;
        line-height: 18px;
        vertical-align: middle;
      }
    }

    span {
      color: #f60;
    }
  }
}
